# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
pkgname=vinegar
pkgver=1.7.4
pkgrel=2
pkgdesc="An open-source, minimal, configurable, fast bootstrapper for running Roblox on Linux"
url="https://vinegarhq.org"
arch="x86_64" # Roblox only has binaries for x86_64 on windows
license="GPL-3.0-only"
depends="cmd:wine"
makedepends="
	go
	make
	mesa-dev
	libxkbcommon-dev
	libxcursor-dev
	wayland-dev
	vulkan-loader-dev
	vulkan-validation-layers-dev
"
source="$pkgname-$pkgver.tar.gz::https://github.com/vinegarhq/vinegar/archive/refs/tags/v$pkgver.tar.gz"
options="net"

build() {
	make
}

check() {
	make tests
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
1f9130b91fcf1353b56da8cf5d1c7716ae5c611df940e413ae8d075f26f516fbfdcd92c047fc32f92fe9cc718a5018f3948c0dafdb37067aa4cdd0840ec75ed9  vinegar-1.7.4.tar.gz
"
